﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using HeartLess.LevelData;
using Microsoft.Xna.Framework.Graphics;

namespace HeartLess.GameObjects
{
    public abstract class Enemy : CollidableGameObject
    {
        protected Point _spawnPoint;

        public Enemy(Point spawnPoint)
            :base(spawnPoint)
        {
            IsSpawned = false;
            _spawnPoint = spawnPoint;
            addCollisionTrigger(this);
            IsCollisionListener = true;
        }

        protected bool IsSpawned
        {
            get;
            set;
        }

        public void Kill()
        {
            Dead = true;
        }
    }
}
